$(function(){
    $("#nextPage").click(function () {
        var mpd=getQueryParams(location.href).mpd;
        var cmpd=$("#Mpd").val().trim();
        if(cmpd==mpd){
            var data=JSON.parse(sessionStorage.data)
            AjaxRequest({
                url:_url+"/money//login/register",
                load:true,
                data:{
                    username:data.username,
                    password:data.password,
                    accountnumber:data.accountnumber,
                    referee:data.referee,
                    safetyPasswd:cmpd
                },
                type:"post",
                success(res){
                    if(res.code==1)
                    {
                        sessionStorage.clear();
                        $(window).attr("location","./registerSuccess.html");
                    }
                }
            })
        }else{
            $.toast("密码前后不一致","text");
        }
    })
})